import request from '@/utils/request'

const api_name = `/admin/cmn/dict`
export default{
  //根据dictCode获取下级节点
  findByDictCode(dictCode){
    return request({
      url: `${api_name}/findByDictCode/${dictCode}`,
      method:'get',
    })
  },
  //根据上级id获取子节点数据列表
  findChildData(id){
    return request({
      url: `${api_name}/findChildData/${id}`,
      method: 'get',
    })
  }
}
